import { closeConnection, commitTransaciton, rollbackTransaction, beginTransction } from "./transactionMethod";


export class transactionAdvice{

    async begin(){
        await beginTransction()
    }

    async after(){
        await commitTransaciton()
        await closeConnection()
    }

    async afterThrow(){
        await rollbackTransaction()
        await closeConnection()
    }

}